#include <stdio.h>
#include<unistd.h>
#include<sys/types.h>
#include<time.h>
#include<string.h>
int main()
{
    while(1)
    {
        printf("我是一个进程,我的pid:%d , 我的ppid:%d\n",getpid(),getppid());
        //fflush(stdout);
        seep(1);
    }//if(ret > 0)
    //{
    //    printf("i'm father ,my pid is %d ,my ppid is %d,val is %d\n",getpid(),getppid(),val);
    //}
    //else if(ret == 0)
    //{
    //    printf("i'm child , my pid is %d ,my ppid is %d ,val is %d\n",getpid(),getppid(),val);
    //}
    //else
    //{
    //    printf("what's wrong with you!!!");
    //}   
    //    sleep(1);
    //}


   // while(1){
   // printf("Hello world\n\a");
   // sleep(1);
   // }
   // return 0;
}

